$(function() {
    var b = null;
    var a = function() {
        LIBS.ajax({
            url: "/index.php/Notice/index",
            cache: false,
            success: function(c) {
                $("#notices").html(c);
                if (c && c.indexOf('<span class="notice_new">') >= 0) {
                    if (b != null && b != c) {
                        $("#footer .more").click()
                    }
                    b = c
                }
            }
        })
    };
    a();
    setInterval(a, 30000)
});